package com.example.aop.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wuyunbin
 */
@RestController
@RequestMapping("demo")
@Slf4j
public class DemoController {

    @GetMapping("method1")
    public void method1(){
        log.info("method1被请求了");
    }

    @GetMapping("method2")
    public void method2(){
        log.info("method2被请求了");
    }
}
